<template>
  <div>
    <template v-if="viewType === 'tree'">
      <TreeView
        ref="refTree"
        :actionId="actionId"
        @change-menu="handleChangeMenu"
      />
    </template>
  </div>
</template>

<script>
import viewMixin from '@/odooui/viewMixin'
import TreeView from './nc_tree.vue'

export default {
  name: 'Web',
  components: { TreeView },
  mixins: [viewMixin],

  data() {
    return {
      actionId: 'fp_sale.action_fp_nc_ods_sale_order'
    }
  },

  computed: {},

  watch: {},

  async created() {},

  mounted() {
    // const { activeIds } = this.$route.query
    this.$refs.refTree.search_data()
  },

  methods: {
    handleChangeMenu(...args) {
      this.$emit('change-menu', ...args)
    }
  }
}
</script>

<style type="text/css"></style>
